<div class="panel panel-danger" name="panel" style="height: 780px">
    <div class="panel-heading">待办工作卡</div>
    <div class="panel-body" style="height: 730px;overflow: auto">

        {% if listdatadoing %}
            {% for item in listdatadoing %}
                <div class="panel panel-default" name="taskcarddoing"
                     {% if item.listdata.strftime('%Y-%m-%d') == diedata %}style="background-color: rgba(255,21,24,0.15)"{% endif %}
                     {% if item.listdata.strftime('%Y-%m-%d') == warndata %}style="background-color: rgba(255,247,48,0.15)"{% endif %}
                     {% if item.listdata.strftime('%Y-%m-%d') < warndata %}style="background-color: rgba(214,211,205,0.61)"{% endif %}>
                    <div class="panel-body">
                        <div class="row">
                            <div class="col-lg-9">
                                <h4 style="margin-top: 0px">IT类任务

                                    <span class="label label-info" {% if item.listdata.strftime('%Y-%m-%d') < diedata %}style="background-color: #6a6a6a"{% endif %}>计划</span>

                                    <span class="label label-danger"
                                          style="margin-left: 10px">{% if item.listdata.strftime('%Y-%m-%d') == diedata %}
                                        节点{% endif %}</span>
                                    <span class="label label-danger"
                                          style="margin-left: 10px;background-color: #6a6a6a">{% if item.listdata.strftime('%Y-%m-%d') < diedata %}
                                        已超时{% endif %}</span>
                                    <span class="label label-warning"
                                          style="margin-left: 10px">{% if item.listdata.strftime('%Y-%m-%d') == warndata %}
                                        即将超时{% endif %}</span>
                                    <span class="label label-primary"
                                          style="margin-left: 10px">{% if not item.uid  == item.createuid %}
                                        由 {{ item.user }} 改派{% endif %}</span>


                                </h4>
                            </div>
                            <div class="col-lg-3">
                                <div class="btn-group btn-block">
                                    <a type="button" class="btn btn-primary btn-block "
                                       href="{{ '%s/%s?id=%s' | format( buildUrl('/work'),item.type,item.id) }}">操作
                                    </a>

                                </div>
                            </div>
                        </div>
                        <p style="font-size:15px;color: #2e6da4 ;margin-top: 5px">
                            {{ item.listdata }}{{ item.listcontent }}
                        </p>
                        <div class="row">
                            <p style="font-size:15px; margin-left: 15px">
                                <strong>备注：</strong>{{ item.listremark }}
                            </p>
                        </div>
                    </div>
                </div>
            {% endfor %}
        {% endif %}

    </div>
</div>